package sia.knights.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import sia.knights.BraveKnight;
import sia.knights.Knight;
import sia.knights.Quest;
import sia.knights.SlayDragonQuest;

/**
 * Created by Administrator on 2017/9/15/015.
 */
@Configuration
public class KnightConfig {

    @Bean
    public Knight knight() {
//        return new SlayDragonQuest(System.out);
        return new BraveKnight(quest());
    }

    private Quest quest() {
        return new SlayDragonQuest(System.out);
    }

}
